﻿namespace LS.Nc6.Web.Entry.Areas.Cms
{
    /// <summary>
    /// 内容输入
    /// </summary>
    public class ContentInput
    {
        /// <summary>
        /// Id
        /// </summary>
        public long Id { get; set; } =0;

        public long ChannelId { get; set; }

        public string Title { get; set; }

        public string SubTitle { get; set; }

        public string Body { get; set; }

        public string Summary { get; set; }

        public string Source { get; set; }

        public string Author { get; set; }

        public string LinkUrl { get; set; }

        public string LinkType { get; set; }

        public int Checked { get; set; }

        public DateTime AddTime { get; set; }

      
        /// <summary>
        /// 分组
        /// </summary>
        public string GroupNameCollection { get; set; }

        /// <summary>
        /// 标签
        /// </summary>
        public string Tags { get; set; }


        /// <summary>
        /// 内容图片，存储图片id
        /// </summary>
        public string ImageUrlIds { get; set; }
        /// <summary>
        /// 内容视频，存储视频id
        /// </summary>
        public string VideoUrlIds { get; set; }
        /// <summary>
        /// 内容附件，存储附件id
        /// </summary>
        public string FileUrlIds { get; set; }

    }


    public class InputContentItemVuale
    {
        public string Label { get; set; }
        public string Value { get; set; }

    }
    /// <summary>
    /// 内容设置分组
    /// </summary>
    public class ContentGroupInput
    {
        public IEnumerable<long> ContentIds { get; set; }

        /// <summary>
        /// 设置类型 1=设置栏目组 0=取消栏目组
        /// </summary>
        public int GroupType { get; set; }

        public List<string> GroupNames { get; set; }
    }
    /// <summary>
    /// 内容标签分组
    /// </summary>
    public class ContentSettingTagInput
    {
        public IEnumerable<long> ContentIds { get; set; }

        /// <summary>
        /// 设置类型 1=设置标签组 0=取消标签组
        /// </summary>
        public int TagType { get; set; }

        public List<string> TagNames { get; set; }
    }
    /// <summary>
    /// 整理内容排序
    /// </summary>
    public class ContentArrangeInput
    {
        /// <summary>
        /// 排序字段 Id Date
        /// </summary>
        public string AttributeName { get; set; }
        /// <summary>
        /// 排序方向 1=des  0= asc
        /// </summary>
        public int IsDesc { get; set; }

        /// <summary>
        /// 栏目Id
        /// </summary>
        public long ChannelId { get; set; }
    }
    /// <summary>
    /// 设置点击量
    /// </summary>
    public class ContentHitsInput
    {
        public IEnumerable<long> ContentIds { get; set; }
        /// <summary>
        /// 方向 1=增加 0=减少
        /// </summary>
        public int IsAdd { get; set; }
        /// <summary>
        /// 点击量
        /// </summary>
        public int Hits { get; set; }
    }
}
